package part1;

public class Main {
    public static void main(String[] args) {
        // 产生原始对象
        TeacherDao teacherDao = new TeacherDao();

        // 创建代理对象
        TeacherDaoProxy teacherDaoProxy = new TeacherDaoProxy(teacherDao);

        // 通过调用代理对象，调用被代理对象的方法
        teacherDaoProxy.teach();
    }
}
